package com.changgou.goods.dao;

import com.changgou.goods.pojo.Sku;
import com.changgou.goods.pojo.Spu;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SpuMapper extends Mapper<Spu> {

    @Select("SELECT * FROM tb_sku t1 WHERE t1.`spu_id`=#{id}")
    List<Sku> findSkuById(String id);
}
